package demo2;

import java.io.FileNotFoundException;

public class Config {
    public static void main(String[] args) throws FileNotFoundException {
        openConfig("config.ini");
    }
    public static void openConfig(String filename)throws FileNotFoundException{
        if(filename.equals("config.ini")){
            throw new FileNotFoundException("文件名错误");
        }
    }
}
